Determines if a file or a directory is available on the data medium.
指定したファイルやディレクトリが、データ記録媒体上で使用可能であるかを確認します。
FileExists(FileName As String | DirectoryName As String)
FileExists(FileName As String | DirectoryName As String)
Bool
ブール型
FileName | DirectoryName: Any string expression that contains an unambiguous file specification. You can also use URL notation.
FileName | DirectoryName:ファイルの位置を明示的に指定した文字列表式。またURL 指定を用いることもできます。
sub ExampleFileExists
sub ExampleFileExists
msgbox FileExists("C:\autoexec.bat")
msgbox FileExists("C:\autoexec.bat")
msgbox FileExists("file:///d|/bookmark.htm")
msgbox FileExists("file:///d|/bookmark.htm")
msgbox FileExists("file:///d|/private")
msgbox FileExists("file:///d|/private")
end sub
end sub